2.6.5. ANSI character encoding and Windows 1252In order to support English and Western European characters, Windows designed a code that corresponds to the code page number 1252, which is called Windows 1252.The design of Windows 1252 is a reference
First, HTML entities1. What is an HTML entity?In HTMl, some characters are reserved. Less than (), the browser is mistaken for a labelIf you want to display reserved characters correctly, you must use the character entity (HTML entities) in the HTML
Java.io.CharConversionException:Not an ISO 8859-1 character:xxxThis problem may be due to the effect of outputstream output Chinese characters.Response.setcontenttype ("Text/html;charset=utf-8");Response.getoutputstream (). Print ("Chinese text");
Take notes.The problem code is as follows:Response.setcontenttype ("Text/html;charset=utf-8");Servletoutputstream out = Response.getoutputstream ();Then I use the Out object to output Chinese characters to the page: Out.println (" guestbook ");Then
Java. Io. charconversionexception:Not an ISO 8859-1 character: XXX
This problem may be caused by text output from outputstream.
Response. setcontenttype ("text/html; charset = UTF-8 ");// Response. getoutputstream (). Print ("中文""); // This row has
Java. Io. charconversionexception: Not an ISO 8859-1 character: XXX
This problem may be caused by text output from outputstream.
Response. setcontenttype ("Text/html; charsets = UTF-8");//Response. getoutputstream (). Print ("text ");//This
The initial code is as follows:
Httpservletresponse resp = NULL;
Out = resp. getoutputstream ();
Out. print (" ");
The solution code is as follows:
Resp. setcontenttype ("text/html; charset = UTF-8 ");Resp. getwriter (). Print (" "); //
Previous wordsHTTP messages can host content in any language, as if it could host images, movies, or any type of MEDIA. For http, The entity body is just a container for binary Information. In order to support international content, the server needs
Previous wordsHTTP messages can host content in any language, as if it could host images, movies, or any type of media. For HTTP, the entity body is just a container for binary information. In order to support international content, the server needs
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.